<template>
  <iframe class="import-i-frame" v-if="src" :src="src" frameborder="0"></iframe>
</template>
<script>
export default {
  data() {
    return {
      src: ''
    }
  },
  created() {
    this.src = this.proxyUrl
  },
  computed: {
    proxyUrl() {
      const fullPath = this.$route.fullPath
      if (/ss-fhb-admin/.test(fullPath)) { // 代理发货宝运营后台
        return '/ss-fhb-admin/#' + fullPath
      }
      return fullPath
    }
  }
}
</script>
